<cfcomponent extends="assets.calgrants.com.Base">

	<cffunction name="chart" access="public" output="false" returntype="any">
		<cfargument name="chartType" required="true" />
		<cfargument name="Organization_ID" required="true" />
		<cfargument name="Program_Year" required="false" default="null" />

		<cfset var recs = "">
		<cfstoredproc datasource="#getDatasource()#" procedure="chart#arguments.chartType#">
			<cfprocparam value="#arguments.Organization_ID#" cfsqltype="CF_SQL_INTEGER" null="false" />
			<cfprocparam value="#arguments.Program_Year#" cfsqltype="CF_SQL_VARCHAR" null="#IIf(arguments.Program_Year eq 'null', true, false)#" />
			<cfprocresult name="recs" />
		</cfstoredproc>
		<cfreturn recs />
	</cffunction>

</cfcomponent>

